package cn.com.ejiakanghu.vo;

import org.linlinjava.litemall.db.domain.AgedmallStore;

import java.math.BigDecimal;
import java.util.List;

public class ScanGunBindInfoVo {
    private Long id;
    private String name;
    private String province;
    private String city;
    private String village;
    private String userName;
    private String phone;
    private String address;
    private String detail;
    private String businessTime;
    private BigDecimal lng;
    private BigDecimal lat;
    private ScanGunBindInfoLockerVo lockerInfo;

    public static ScanGunBindInfoVo getInstance(AgedmallStore store, ScanGunBindInfoLockerVo lockerInfo) {
        ScanGunBindInfoVo scanGunBindInfoVo = new ScanGunBindInfoVo();
        scanGunBindInfoVo.setId(store.getId());
        scanGunBindInfoVo.setName(store.getStoreName());
        scanGunBindInfoVo.setProvince(store.getProvinceName());
        scanGunBindInfoVo.setCity(store.getCityName());
        scanGunBindInfoVo.setVillage(store.getAreaName());
        scanGunBindInfoVo.setUserName(store.getUserName());
        scanGunBindInfoVo.setPhone(store.getPhone());
        scanGunBindInfoVo.setAddress(store.getAddressDetail());
        scanGunBindInfoVo.setDetail(store.getProvinceName() + store.getCityName() + store.getAreaName() + store.getAddressDetail());
        scanGunBindInfoVo.setBusinessTime(store.getBusinessTime());
        scanGunBindInfoVo.setLng(store.getLng());
        scanGunBindInfoVo.setLat(store.getLat());
        scanGunBindInfoVo.setLockerInfo(lockerInfo);
        return scanGunBindInfoVo;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getBusinessTime() {
        return businessTime;
    }

    public void setBusinessTime(String businessTime) {
        this.businessTime = businessTime;
    }

    public BigDecimal getLng() {
        return lng;
    }

    public void setLng(BigDecimal lng) {
        this.lng = lng;
    }

    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }

    public ScanGunBindInfoLockerVo getLockerInfo() {
        return lockerInfo;
    }

    public void setLockerInfo(ScanGunBindInfoLockerVo lockerInfo) {
        this.lockerInfo = lockerInfo;
    }
}
